// AWTRowLayout.h: interface for the AWTRowLayout class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTROWLAYOUT_H__87F1DFC5_73C9_11D2_A41C_006097A44215__INCLUDED_)
#define AFX_AWTROWLAYOUT_H__87F1DFC5_73C9_11D2_A41C_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "stdafx.h"
#include "AWTObject.h"

class AFX_EXT_CLASS AWTRowLayout : public AWTLayout,
                                   public AWTLayoutManager  
{
DECLARE_DYNAMIC(AWTRowLayout)
public:
	AWTRowLayout();
	AWTRowLayout(int gap);
	virtual ~AWTRowLayout();

	virtual AWTLayoutManager* getLayoutManager()
		{return static_cast<AWTLayoutManager*>(this);}

	void addLayoutComponent(CString* name, AWTComponent* comp);
	void addLayoutComponent(AWTComponent* comp, AWTObject* constraints){};
	void removeLayoutComponent(AWTComponent* comp);
	CSize preferredLayoutSize(AWTContainer* target);
	CSize minimumLayoutSize(AWTContainer* target);
	void layoutContainer(AWTContainer* target);
	void destroy()
		{delete this;}


protected:
	int m_gap;
};

#endif // !defined(AFX_AWTROWLAYOUT_H__87F1DFC5_73C9_11D2_A41C_006097A44215__INCLUDED_)
